<template>
	<view class="skeleton-evaluate">
		<view class="skeleton-header">
			<view class="skeleton-avatar"></view>
			<view class="skeleton-info">
				<view class="skeleton-line short"></view>
				<view class="skeleton-line tiny"></view>
			</view>
		</view>
		<view class="skeleton-content">
			<view class="skeleton-line"></view>
			<view class="skeleton-line long"></view>
			<view class="skeleton-line"></view>
		</view>
		<view class="skeleton-images">
			<view class="skeleton-image"></view>
			<view class="skeleton-image"></view>
			<view class="skeleton-image"></view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "SkeletonEvaluate"
	}
</script>

<style lang="scss" scoped>
	.skeleton-evaluate {
		width: 100%;
		padding: 24rpx;
		background: #ffffff;
		border-radius: 16rpx;
		margin-bottom: 24rpx;
		
		.skeleton-header {
			display: flex;
			flex-direction: row;
			align-items: center;
			margin-bottom: 20rpx;
			
			.skeleton-avatar {
				width: 70rpx;
				height: 70rpx;
				border-radius: 50%;
				background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
				background-size: 400% 100%;
				animation: skeleton-loading 1.4s ease infinite;
				margin-right: 16rpx;
			}
			
			.skeleton-info {
				flex: 1;
				
				.skeleton-line {
					height: 24rpx;
					background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
					background-size: 400% 100%;
					animation: skeleton-loading 1.4s ease infinite;
					border-radius: 4rpx;
					margin-bottom: 10rpx;
					
					&:last-child {
						margin-bottom: 0;
					}
					
					&.short {
						width: 40%;
					}
					
					&.tiny {
						width: 30%;
						height: 20rpx;
					}
				}
			}
		}
		
		.skeleton-content {
			margin-bottom: 20rpx;
			
			.skeleton-line {
				height: 28rpx;
				background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
				background-size: 400% 100%;
				animation: skeleton-loading 1.4s ease infinite;
				border-radius: 4rpx;
				margin-bottom: 15rpx;
				
				&:last-child {
					margin-bottom: 0;
				}
				
				&.long {
					width: 80%;
				}
			}
		}
		
		.skeleton-images {
			display: flex;
			flex-direction: row;
			
			.skeleton-image {
				width: 176rpx;
				height: 176rpx;
				border-radius: 16rpx;
				background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
				background-size: 400% 100%;
				animation: skeleton-loading 1.4s ease infinite;
				margin-right: 20rpx;
				
				&:last-child {
					margin-right: 0;
				}
			}
		}
	}
	
	@keyframes skeleton-loading {
		0% {
			background-position: 100% 50%;
		}
		100% {
			background-position: 0 50%;
		}
	}
</style>